Fix

Fix and Truncate (x), Truncate (x, #places) are equivalent functions. However, Fix is preferred in Basic syntax whereas Truncate is preferred in Crystal syntax.

Overloads
Arguments
Returns

Whole number value which can be positive, 0 or negative.

Action

Fix truncates a number to the specified number of decimal places and returns it. If #places is omitted, 0 is assumed.

Examples

The following examples are applicable to both Basic and Crystal syntax:

Fix (123.678)

Returns 123.

Fix (-123.678)

Returns -123.

Fix (123.678,1)

Returns 123.6.

Fix (123.678,2)

Returns 123.67.

Comments

Fix (-10.2)

Returns -10.

Int (-10.2)

Returns -11.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com